Skip to content

[WC-3051]: Improve file extension validation in file uploader web widget - #1802

Merged
r0b1n merged 1 commit into
mainfrom
fix/file-uploader-extension-check
Aug 15, 2025
Merged

[WC-3051]: Improve file extension validation in file uploader web widget#1802
r0b1n merged 1 commit into
mainfrom
fix/file-uploader-extension-check

Conversation

@r0b1n

@r0b1n r0b1n commented Jul 31, 2025

Copy link
Copy Markdown
Collaborator

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

In extension, allow everything except reserved characters that are not allowed in filenames. Also improve error message to better clarify format and examples.

What should be covered while testing?

Test allowing and uploading files with extensions containing special characters (e.g., .tar-gz, .js-map, .c++).

@r0b1n
r0b1n requested a review from a team as a code owner July 31, 2025 08:37
@r0b1n
r0b1n force-pushed the fix/file-uploader-extension-check branch from a84d810 to 463e658 Compare July 31, 2025 09:09
gjulivan
gjulivan previously approved these changes Jul 31, 2025
@gjulivan
gjulivan force-pushed the fix/file-uploader-extension-check branch from 463e658 to 4f1befd Compare August 8, 2025 09:02
gjulivan
gjulivan previously approved these changes Aug 8, 2025
gjulivan
gjulivan previously approved these changes Aug 11, 2025
@r0b1n
r0b1n force-pushed the fix/file-uploader-extension-check branch from fed7ecd to ec825b7 Compare August 13, 2025 09:36
@r0b1n
r0b1n enabled auto-merge August 15, 2025 11:16
@r0b1n
r0b1n merged commit 554d7ef into main Aug 15, 2025
14 checks passed
@r0b1n
r0b1n deleted the fix/file-uploader-extension-check branch August 15, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants